package operator;
/*
    字符串数据做加法 :
        1. 本质是做字符串的连接
        2. 字符串做加法结果一定是字符串类型
        3. 字符串和字符做加法的时候,字符不会变成对应的数值,而是直接拼接
 */
public class OperatorDemo2 {
    public static void main(String[] args) {
        System.out.println("Hello" + 100);

        int age = 18;
        System.out.println("年龄是:" + age);

        //soutv
        System.out.println("age = " + age);

        System.out.println("--------------------");
        System.out.println("Hello" + 100 + 200);
        System.out.println(100 + 200 + "Hello");
        System.out.println("Hello" + 100 + 'a');//"hello100" + 'a'
        System.out.println(100 + 'a' + "Hello" );//197Hello



    }
}
